<!--------头部开始-------------->
<include file="Public/min-header" /> <!--引入 js css img 文件-->
<include file="Public/header" />
<!--------头部结束-------------->

<div class="layout pa-to-10 fo-fa-ar">
    <!--菜单-->
    <include file="User/menu" />
    <!--菜单-->
    <div class="fr wi940">
        <div class="aboutmoney " >
            <div class="usermoney topup-money">
                <div class="userdown-top network-topup">
                    <ul><li class="alllist" style="margin-left: -1px">网银充值</li></ul>
                </div>
                <hr style="height: 1px; background: #dedede; border: none; margin-top: -2px;" />
                <div class="choicetu">
                    <p>选择充值金额：</p>
                    <div class="monettu">
                        <div class="fop-main">
                            <div class="m-tagbox m-multi-tag">
                                <a href="javascript:void(0)" rel="50" class="tag-item">￥50.00<i class="t-check tptig"></i></a>
                                <a href="javascript:void(0)" rel="100" class="tag-item">￥100.00<i class="t-check"></i></a>
                                <a href="javascript:void(0)" rel="200" class="tag-item">￥200.00<i class="t-check"></i></a>
                                <a href="javascript:void(0)" rel="500" class="tag-item">￥500.00<i class="t-check"></i></a>
                                <div class="tag-define" data_id="tag_157">
                                    <span class="define-label" style="display: block;"><i class="i-pen"></i><em>输入金额</em></span>
                                    <input type="text" class="define-input"  onkeyup="$('#add_money').val($(this).val());" onfocus="$('.t-check').removeClass('tptig');$('#add_money').val(0);" id="input_val" style="display: none;">
                                </div>
                            </div>
                        </div>
                        <div class="fop-choice">
                            <form action="" method="post"  id="recharge_form">
                                <div class="orde-sjyy">
                                    <div class="bsjy-g">
                                        <dl>
                                            <dd>
                                                <div class="order-payment-area">
                                                    <div class="dsfzfpte">
                                                        <b>选择支付方式</b>                               
                                                    </div>
                                                    <div class="po-re dsfzf-ee">
                                                        <ul>
                                                            <foreach name="paymentList" item="v"  key="k">      
                                                                <li>
                                                                    <div class="payment-area">
                                                                        <input type="radio" id="{$v['code']}"  value="pay_code={$v['code']}" class="radio vam" name="pay_radio" <if condition="$k eq 'alipay'">checked</if>>
                                                                        <label for="{$v['code']}">
                                                                            <img src="/plugins/{$v['type']}/{$v['code']}/{$v['icon']}" width="120" height="40" />
                                                                        </label>
                                                                    </div>
                                                                </li>
                                                            </foreach>                              
                                                        </ul>
                                                    </div>
                                                </div>
                                                <!--第三方网银支付 start-->
                                            <foreach name="bankCodeList" item="v"  key="k">
                                                <div class="order-payment-area">
                                                    <div class="dsfzfpte">
                                                        <b>{$paymentList[$k]['name']}</b>
                                                        <em>网银支付</em>
                                                    </div>
                                                    <div class="po-re dsfzf-ee">
                                                        <ul>
                                                            <foreach name="v" item="v2"  key="k2">
                                                                <li>
                                                                    <div class="payment-area">
                                                                        <input type="radio" name="pay_radio" class="radio vam" value="pay_code={$k}&bank_code={$v2}" id="{$k2}">
                                                                        <label for="{$k2}">
                                                                            <img src="__STATIC__/images/images-out/{$bank_img[$k2]}" width="120" height="40" />
                                                                        </label>
                                                                    </div>
                                                                </li>
                                                            </foreach>                                                               
                                                        </ul>
                                                    </div> 
                                                </div>
                                            </foreach>                   
                                            <!--第三方网银支付 end -->                             
                                            </dd>
                                        </dl>
                                        <input type="hidden" name="account" id="add_money" value="50">
                                        <div class="order-payment-action-area">                    
                                            <a class="button-style-5 button-confirm-payment" href="javascript:void(0);" onclick="recharge_submit()">确认支付方式</a>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>    
            </div>
        </div>
    </div>
</div>
<div class="he80"></div>
<!--------footer-开始-------------->
<include file="Public/footer" />
<!--------footer-结束-------------->
</body>
<script>
    $(function () {
        $(".userdown-top ul li").click(function () {
            $(this).addClass('alllist').siblings().removeClass('alllist');
        });
    });

    function mywalletsa() {
        $('.mywallets').show();
        $('.addmon').hide();
    }
    ;
    function mywalletstopup() {
        $('.addmon').show();
        $('.mywallets').hide();
    }
    ;

    $(document).ready(function () {
        $(document).on('click', '.tag-item', function () {
            $(this).find('.t-check').addClass('tptig').parent().siblings().find('.t-check').removeClass('tptig');
            $('#add_money').val($(this).attr('rel'));
        });
        $('.tag-define').click(function () {
            var goods_id = $(this).attr('data_id').substr(4);
            $(this).find('.define-label').hide();
            $(this).find('.define-input').show().focus();
            $(this).find('.define-input').blur(function () {
                var ce = $(this).val();
                ce = ce.replace(/\D|^0/g, '')
                $(this).parent('.tag-define').siblings('.tag-item').each(function () {
                    var a_text = $(this).text();
                    if (ce == a_text && ce != '') {
                        alert('已有该标签!');
                        ce = '';
                        $('.define-input').val('');
                    }
                });
                if (ce == '') {
                    $(this).prev('.define-label').show();
                    $(this).hide();
                } else {

                }
            })
        });

    });

    $(function () {
        //高亮显示
        var active = '{$active_status}';
        if (!active)
            active = 'ALL';
        $('.wddd-li li').removeClass('wddd-red');
        $('#' + active).addClass('wddd-red');

        $("#h-s").mouseover(function () {
            $('.ec-ta-x').css('left', '124px');
            $('.ec-ta-x').css('width', '110px');
            $(this).addClass("cullent");
        });
        $("#h-s").mouseout(function () {
            $('.ec-ta-x').css('left', '0px');
            $('.ec-ta-x').css('width', '124px');
            $(this).removeClass("cullent");
        });
        $("#q-s").mouseover(function () {
            $('.ec-ta-x').css('left', '0px');
            $(this).addClass("cullent");
        });
        $("#q-s").mouseout(function () {
            $('.ec-ta-x').css('left', '0px');
        });
    });

    function recharge_submit() {
        var input_val = parseInt($('#input_val').val());
        if (input_val > 0) {
            $('#add_money').val(input_val);
        }
        var account = $('#add_money').val();
        if (isNaN(account) || parseInt(account) <= 0 || account == '') {
            alert('请输入正确的充值金额');
            return false;
        }
        $('#recharge_form').submit();
    }
</script>
</html>